package cn.craftyun.yunexam.request;

import cn.craftyun.yunexam.vo.QuestionOptionVO;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class EditQuestionRequest {
    @NotNull
    private Long id;
    @NotNull
    private Long paperId;
    @NotNull
    private Integer type;
    @NotEmpty
    private String title;
    @NotEmpty
    private String content;
    @NotNull
    private List<String> answer;
    @NotNull
    @Valid
    private List<QuestionOptionVO> options;
    @NotNull
    private Integer score;
}
